<html>
    <head>
        <title></title>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta HTTP-EQUIV="REFRESH" <?php printf('content="2;url=Edit"')?> >
    </head>
    <body  bgcolor="#e0e0e0">
<img src="inc/vogon1.jpg" align="middle"><font size="+4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Vogoni</b></font>
<BR>
<?php
require_once 'inc/mysql.inc.php';
//$id=6;
$id=$_GET['id'];
$result = mysql_query("SELECT * FROM People WHERE `id`=$id;");
if (mysql_num_rows($result) != 0){
    $row = mysql_fetch_array($result);
    if($row[':active'] == 0){ 
        $stat = 1;
    }else{ 
        $stat = 0;
    }
    echo "UPDATE People SET `:active` = $stat  WHERE `id` = $id"."<BR>";
    $resultA = mysql_query("UPDATE People SET `:active` = $stat  WHERE `id` = $id;");

}else{
  echo"Nenalezen.";
}
mysql_free_result($result);
include 'UstavExport.php';

?>

</body>
</html>